<!-- include tpl=head_lay nopadding=$isopen -->
<style type="text/css">
.layui-form-label{
	padding-top:0;
}
</style>
<input type="hidden" id="_root_cate" value="{$p_rs.cate}" />
<script type="text/javascript" src="{func include_js list.js}"></script>
<form method="post" id="_listedit" class="layui-form"{if $isopen} onsubmit="return false"{else} onsubmit="return $.admin_list_edit.save2close()"{/if}>
<input type="hidden" name="id" id="id" value="{$id}" />
<input type="hidden" name="pid" id="pid" value="{$pid}" />
<input type="hidden" name="parent_id" id="parent_id" value="{$parent_id}" />
<input type="hidden" name="style" id="style" value="{$rs.style}" />
<div class="layui-card">
	<div class="layui-card-body">
		<div class="layui-tab" lay-filter="list">
			<ul class="layui-tab-title">
				<li class="layui-this">{lang主要信息}</li>
				<li>扩展信息</li>
				<!-- if $p_rs.is_biz -->
				<li>{lang电子商务}</li>
				<!-- /if -->
				<!-- if $p_rs.is_seo -->
				<li>{langSEO优化}</li>
				<!-- /if -->
				<!-- if $id && $loglist -->
				<li>{lang历史变更}</li>
				<!-- /if -->
				<div style="position: absolute;right:10px;top:10px;font-size:12px;">
					<label>
						<input type="checkbox" onclick="$.admin_list_edit.autosave_checkbox(this)" lay-ignore /> {lang开启自动保存功能}
					</label>
				</div>
			</ul>
			<div class="layui-tab-content">
				<div class="layui-tab-item layui-show">
					<div class="layui-form-item">
						<label class="layui-form-label"><!-- if $p_rs.alias_title -->{$p_rs.alias_title}<!-- else -->{lang主题}<!-- /if --><small style="color:#ccc;display:block;">title</small></label>
						<div class="layui-input-block">
							<input type="text" name="title" id="title" value="{$rs.title}" class="layui-input"{if $rs.style} style="{$rs.style}"{/if} placeholder="{lang不能超过80个汉字}{if $p_rs.alias_note}，{$p_rs.alias_note}{/if}" />
							<div style="position: absolute;right:5px;top:4.5px;">
								<button type="button" class="layui-btn layui-btn-sm" onclick="phpok_admin_style('style','title')">
									<i class="layui-icon">&#xe64e;</i> {lang样式}
								</button>
							</div>
						</div>
						<!-- if $attrlist && $p_rs.is_attr -->
						<div class="layui-input-block">
							<!-- loop from=$attrlist key=$key value=$value -->
							<input type="checkbox" name="attr[]" lay-skin="primary" id="_attr_{$key}" title="{$value.val}({$key})" value="{$key}"{if $value.status} checked{/if} />
							<!-- /loop -->
						</div>
						<!-- /if -->
					</div>		
					<!-- if $p_rs.is_identifier == 2 || $p_rs.is_identifier == 3 -->
					<div class="layui-form-item">
						<label class="layui-form-label">{lang自定义标识}<small style="color:#ccc;display:block;">identifier</small></label>
						<div class="layui-input-inline default-auto">
							<input type="text" id="identifier" name="identifier" value="{$rs.identifier}" class="layui-input" />
						</div>
						<div class="layui-input-inline auto" id="HTML-POINT-PHPOK-IDENTIFIER">
							<input type="button" value="{lang随机码}" onclick="$.admin.rand()" class="layui-btn layui-btn-sm" />
						</div>
						<div class="layui-form-mid">
							{lang仅支持字母、数字、下划线或中划线且必须是字母开头}
						</div>
					</div>
					<!-- /if -->
					
					<!-- if $p_rs.cate -->
					<div class="layui-form-item">
						<label class="layui-form-label">{lang主分类}<small style="color:#ccc;display:block;">cate_id</small></label>
						<div class="layui-input-inline default-auto">
							<select name="cate_id" id="cate_id">
								<option value="">{lang请选择…}</option>
								<!-- loop from=$catelist key=$key value=$value id=$tmpid -->
								<option value="{$value.id}"{if $value.id == $rs.cate_id} selected{/if} data-isend="{$value._is_end}" data-layer="{$value._layer}">{$value._space}{$value.title}</option>
								<!-- /loop -->
							</select>
						</div>
						<div class="layui-form-mid">{lang主分类不能为空}</div>
					</div>
					<!-- /if -->
					<!-- if $p_rs.cate && $p_rs.cate_multiple -->
					<div class="layui-form-item">
						<label class="layui-form-label">{lang扩展分类}<small style="color:#ccc;display:block;">catelist</small></label>
						<div class="layui-input-block">
							<select name="ext_cate_id[]" id="ext_cate_id" class="w99" lay-ignore multiple="multiple">
							<!-- loop from=$catelist key=$key value=$value id=$tmpid -->
							<option value="{$value.id}"{if $extcate && in_array($value.id,$extcate)} selected{/if}>{$value._space}{$value.title}</option>
							<!-- /loop -->
							</select>
						</div>
						<div class="layui-input-block mtop">{lang按钮CTRL进行多选}</div>
					</div>
					<!-- /if -->
					<!-- loop from=$extlist key=$key value=$value id=$tmpid -->
					<!-- if $value.sublist -->
					<div class="layui-row">
						<div class="layui-col-xs12 layui-col-sm6 {$value.css_cls}">
							<div class="layui-form-item" data-id="{$value.identifier}">
						    	<label class="layui-form-label">
							    	<!-- if $value.note && ($value.admin-note-show == 1 || $value.admin-note-show == 3 || $value.admin-note-show == 4) -->
							    	<i class="layui-icon layui-tips" lay-tips="{$value.note}">&#xe702;</i>
							    	<!-- /if -->
							    	{$value.title}
									<small style="color:#ccc;display:block;">{$value.identifier}</small>
								</label>
								<!-- if $value.note && $value.admin-note-show == 2 -->
								<div class="layui-input-block gray">{$value.note}</div>
								<!-- /if -->
								<div class="layui-input-block">
									{$value.html}
								</div>
								<!-- if $value.note && $value.admin-note-show == 5 -->
								<div class="layui-input-block gray">{$value.note}</div>
								<!-- /if -->
							</div>
						</div>
						<!-- loop from=$value.sublist key=$k value=$v id=$idxx -->
						<div class="layui-col-xs12 layui-col-sm6 {$value.css_cls}">
							<div class="layui-form-item" data-id="{$v.identifier}">
								<label class="layui-form-label">
									<!-- if $v.note && ($v.admin-note-show == 1 || $v.admin-note-show == 3 || $v.admin-note-show == 4) -->
									<i class="layui-icon layui-tips" lay-tips="{$v.note}">&#xe702;</i>
									<!-- /if -->
									{$v.title}
									<small style="color:#ccc;display:block;">{$v.identifier}</small>
								</label>
								<!-- if $v.note && $v.admin-note-show == 2 -->
								<div class="layui-input-block gray">{$v.note}</div>
								<!-- /if -->
								<div class="layui-input-block">
									{$v.html}
								</div>
								<!-- if $v.note && $v.admin-note-show == 2 -->
								<div class="layui-input-block gray">{$v.note}</div>
								<!-- /if -->
							</div>
						</div>
						<!-- /loop -->
					</div>
					<!-- else -->
					<div class="layui-form-item" data-id="{$value.identifier}">
						<label class="layui-form-label">
							<!-- if $value.note && $value.admin-note-show == 1 -->
							<i class="layui-icon layui-tips" lay-tips="{$value.note}">&#xe702;</i>
							<!-- /if -->
							{$value.title}
							<small style="color:#ccc;display:block;">{$value.identifier}</small>
						</label>
						<!-- if $value.note && $value.admin-note-show == 2 -->
						<div class="layui-input-block gray">{$value.note}</div>
						<!-- /if -->
						<!-- if $value.note && ($value.admin-note-show == 3 || $value.admin-note-show == 4) -->
						<div class="layui-input-inline auto">
							{$value.html}
							<!-- if $popedom.ext && $value.is_edit && $session.adm_develop -->
							<div class="layui-btn-group">
								<!-- if $ext_module != 'add-list' -->
								<input type="button" value="{lang编辑}" class="layui-btn layui-btn-xs" onclick="ext_edit('{$value.identifier}','{$ext_module}')" />
								<!-- /if -->
								<input type="button" value="{lang删除}" class="layui-btn layui-btn-xs layui-btn-danger" onclick="ext_delete('{$value.identifier}','{$ext_module}','{$value.title}')" />
							</div>
							<!-- /if -->
						</div>
						<div class="layui-form-mid">
							<!-- if $value.admin-note-show == 4 -->
							<i class="layui-icon layui-tips gray" lay-tips="{$value.note}">&#xe607;</i>
							<!-- else -->
							{$value.note}
							<!-- /if -->
						</div>
						<!-- else -->
						<div class="layui-input-block">
							{$value.html}
							<!-- if $popedom.ext && $value.is_edit && $session.adm_develop -->
							<div class="layui-btn-group">
								<!-- if $ext_module != 'add-list' -->
								<input type="button" value="{lang编辑}" class="layui-btn layui-btn-xs" onclick="ext_edit('{$value.identifier}','{$ext_module}')" />
								<!-- /if -->
								<input type="button" value="{lang删除}" class="layui-btn layui-btn-xs layui-btn-danger" onclick="ext_delete('{$value.identifier}','{$ext_module}','{$value.title}')" />
							</div>
							<!-- /if -->
						</div>
						<!-- /if -->
						<!-- if $value.note && $value.admin-note-show == 5 --><div class="layui-input-block gray">{$value.note}</div><!-- /if -->
					</div>
					<!-- /if -->
					<!-- /loop -->
					<!-- if $p_rs.is_tag == 2 || $p_rs.is_tag == 3 -->
					<div class="layui-form-item">
						<label class="layui-form-label">{lang标签}</label>
						<div class="layui-input-block">
							<input type="text" name="tag" id="tag" value="{$rs.tag}" class="layui-input" />
						</div>
						<div class="layui-input-block mtop">
							<div class="layui-btn-group">
								<!-- if $tag_config.count && $taglist -->
								<!-- loop from=$taglist key=$key value=$value id=$tmpid -->
								<input type="button" value="{$value.title}" onclick="$.phpok_list.tag_append(this.value,'{$tag_config.separator}')" class="layui-btn layui-btn-sm" />
								<!-- /loop -->
								<!-- /if -->
								<input type="button" value="{lang更多选择}" onclick="$.phpok_list.tag()" class="layui-btn layui-btn-sm layui-btn-normal" />
								<input type="button" value="{lang分割符}" onclick="$.form.input('tag',',')" class="layui-btn layui-btn-sm layui-btn-warm" />
								<input type="button" value="{lang清空}" onclick="$('input[name=tag]').val('')" class="layui-btn layui-btn-sm layui-btn-danger" />
							</div>
						</div>
						<div class="layui-input-block mtop">{lang多个标签用 [title] 分开，最多不能超过10个|title:$tag_config.separator}</div>
					</div>
					<!-- /if -->
					<!-- if $p_rs.is_userid == 2 || $p_rs.is_userid == 3 -->
					<div class="layui-form-item">
						<label class="layui-form-label">
							<!-- if $p_rs.user_alias -->{$p_rs.user_alias}<!-- else -->{lang用户}<!-- /if -->
						</label>
						<div class="layui-input-inline auto">
							{func form_edit user_id $rs.user_id user}
						</div>
						<div class="layui-input-inline auto gray lh38">
							<!-- if $p_rs.user_note -->
							{$p_rs.user_note}
							<!-- else -->
							{lang绑定用户功能，允许用户对主题进行修改或删除，需要开放发布权限}
							<!-- /if -->
							
						</div>
					</div>
					<!-- /if -->
					<!-- if $p_rs.is_tpl_content == 2 || $p_rs.is_tpl_content == 3 -->
					<div class="layui-form-item">
						<label class="layui-form-label">
							{lang内容模板}
						</label>
						<div class="layui-input-inline default-auto">
							<input type="text" id="tpl" name="tpl" class="layui-input" value="{$rs.tpl}" />
						</div>
						<div class="layui-input-inline auto gray">
							<div class="layui-btn-group">
								<input type="button" value="{lang选择}" onclick="phpok_tpl_open('tpl')" class="layui-btn layui-btn-sm" />
								<input type="button" value="{lang清空}" onclick="$('#tpl').val('');" class="layui-btn layui-btn-sm layui-btn-danger" />
							</div>
						</div>
						<div class="layui-input-inline auto gray lh38">
							{lang为空将使用} <span class="red">{$p_rs.tpl_content ? $p_rs.tpl_content : $p_rs.identifier.'_content'}</span>
						</div>
					</div>
					<!-- /if -->
					<!-- if $popedom.ext && $session.adm_develop && $id -->
					<div class="layui-form-item">
						<label class="layui-form-label">{lang扩展字段}</label>
						<div class="layui-input-inline default">
							<select id="_tmp_select_add">
								<option value="">{lang请选择要添加的扩展字段…}</option>
								<!-- loop from=$extfields key=$key value=$value -->
								<option value="{$value.identifier}">{$value.title} - {$value.identifier}</option>
								<!-- /loop -->
							</select>
						</div>
						<div class="layui-input-inline auto">
							<div class="layui-btn-group">
								<input type="button" value="{lang快速添加}" onclick="$.admin_list.update_select_add('{$ext_module}')"  class="layui-btn" />
								<input type="button" value="{lang创建新的扩展字段}" onclick="ext_add('{$ext_module}')" class="layui-btn" />
							</div>
						</div>
					</div>
					<!-- /if -->
				</div>
				<div class="layui-tab-item">
					<!-- loop from=$e_sublist key=$key value=$value id=$tmpid -->
					<!-- if $value.sublist -->
					<div class="layui-row layui-col-space10">
						<div class="layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg3">
					    	<label class="layui-form-label">
								<!-- if $value.note --><i class="layui-icon layui-tips" lay-tips="{$value.note}">&#xe702;</i><!-- /if --> {$value.title}
								<small style="color:#ccc;display:block;">{$value.identifier}</small>
							</label>
							<div class="layui-input-block">
								{$value.html}
							</div>
						</div>
						<!-- loop from=$value.sublist key=$k value=$v id=$idxx -->
						<div class="layui-col-xs12 layui-col-sm6 {$value.css_cls}">
							<label class="layui-form-label">
								<!-- if $v.note --><i class="layui-icon layui-tips" lay-tips="{$v.note}">&#xe702;</i><!-- /if -->{$v.title}
								<small style="color:#ccc;display:block;">{$v.identifier}</small>
							</label>
							<div class="layui-input-block">
								{$v.html}
							</div>
						</div>
						<!-- /loop -->
					</div>
					<!-- else -->
					<div class="layui-form-item" data-id="{$value.identifier}">
						<label class="layui-form-label">
							<!-- if $value.note --><i class="layui-icon layui-tips" lay-tips="{$value.note}">&#xe702;</i><!-- /if -->
							{$value.title}
							<small style="color:#ccc;display:block;">{$value.identifier}</small>
						</label>
						<div class="layui-input-block">
							{$value.html}
						</div>
					</div>
					<!-- /if -->
					<!-- /loop -->
					<!-- if $p_rs.is_identifier == 1 -->
					<div class="layui-form-item">
						<label class="layui-form-label">{lang自定义标识}</label>
						<div class="layui-input-inline default-auto">
							<input type="text" id="identifier" name="identifier" value="{$rs.identifier}" class="layui-input" />
						</div>
						<div class="layui-input-inline auto" id="HTML-POINT-PHPOK-IDENTIFIER">
							<input type="button" value="{lang随机码}" onclick="$.admin.rand()" class="layui-btn layui-btn-sm" />
						</div>
						<div class="layui-input-inline auto gray">{lang仅支持字母、数字、下划线或中划线且必须是字母开头}</div>
					</div>
					<!-- /if -->
					<!-- if $p_rs.is_userid == 1 -->
					<div class="layui-form-item">
						<label class="layui-form-label">
							<!-- if $p_rs.user_alias -->{$p_rs.user_alias}<!-- else -->{lang用户}<!-- /if -->
						</label>
						<div class="layui-input-inline auto">
							{func form_edit user_id $rs.user_id user}
						</div>
						<div class="layui-input-inline auto gray lh38">
							<!-- if $p_rs.user_note -->
							{$p_rs.user_note}
							<!-- else -->
							{lang绑定用户功能，允许用户对主题进行修改或删除，需要开放发布权限}
							<!-- /if -->
							
						</div>
					</div>
					<!-- /if -->
					<!-- if $p_rs.is_tag == 1 -->
					<div class="layui-form-item">
						<label class="layui-form-label">{lang标签}</label>
						<div class="layui-input-block">
							<input type="text" name="tag" id="tag" value="{$rs.tag}" class="layui-input" />
						</div>
						<div class="layui-input-block mtop">
							<div class="layui-btn-group">
								<!-- if $tag_config.count && $taglist -->
								<!-- loop from=$taglist key=$key value=$value id=$tmpid -->
								<input type="button" value="{$value.title}" onclick="$.phpok_list.tag_append(this.value,'{$tag_config.separator}')" class="layui-btn layui-btn-sm" />
								<!-- /loop -->
								<!-- /if -->
								<input type="button" value="{lang更多选择}" onclick="$.phpok_list.tag()" class="layui-btn layui-btn-sm layui-btn-normal" />
								<input type="button" value="{lang分割符}" onclick="$.form.input('tag',',')" class="layui-btn layui-btn-sm layui-btn-warm" />
								<input type="button" value="{lang清空}" onclick="$('input[name=tag]').val('')" class="layui-btn layui-btn-sm layui-btn-danger" />
							</div>
						</div>
						<div class="layui-input-block mtop">{lang多个标签用 [title] 分开，最多不能超过10个|title:$tag_config.separator}</div>
					</div>
					<!-- /if -->
					<!-- if $p_rs.is_tpl_content == 1 -->
					<div class="layui-form-item">
						<label class="layui-form-label">
							{lang内容模板}
						</label>
						<div class="layui-input-inline default-auto">
							<input type="text" id="tpl" name="tpl" class="layui-input" value="{$rs.tpl}" />
						</div>
						<div class="layui-input-inline auto gray">
							<div class="layui-btn-group">
								<input type="button" value="{lang选择}" onclick="phpok_tpl_open('tpl')" class="layui-btn layui-btn-sm" />
								<input type="button" value="{lang清空}" onclick="$('#tpl').val('');" class="layui-btn layui-btn-sm layui-btn-danger" />
							</div>
						</div>
						<div class="layui-input-inline auto gray lh38">
							{lang为空将使用} <span class="red">{$p_rs.tpl_content ? $p_rs.tpl_content : $p_rs.identifier.'_content'}</span>
						</div>
					</div>
					<!-- /if -->
					<div class="layui-form-item">
						<label class="layui-form-label">
							{lang状态}
						</label>
						<div class="layui-input-inline auto">
							<input type="radio" title="{lang未审核}" name="status" id="status_0" value="0"{if $id && !$rs[status]} checked{/if} />
							<input type="radio" name="status" title="{lang已审核}" id="status_1" value="1"{if !$id || $rs[status]} checked{/if} />
						</div>
						<div class="layui-input-inline auto gray lh38">{lang未审核主题前台不可用，不可访问}</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">
							{lang是否隐藏}
						</label>
						<div class="layui-input-inline auto">
							<input type="radio" title="{lang显示}" name="hidden" id="hidden_0" value="0"{if !$rs[hidden]} checked{/if} />
							<input type="radio" title="{lang隐藏}" name="hidden" id="hidden_1" value="1"{if $rs.hidden} checked{/if} />
						</div>
						<div class="layui-input-inline auto gray lh38">{lang隐藏的主题在列表中不可见，但可以手工输网址访问}</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">
							{lang发布时间}
						</label>
						<div class="layui-input-inline auto">
							<input type="text" id="dateline" name="dateline" class="layui-input" value="{if $rs.dateline}{func date 'Y-m-d H:i:s' $rs.dateline}{/if}" />
						</div>
						<div class="layui-input-inline auto">
							<div class="layui-btn-group">
								<input type="button" value="{lang时间选择器}" onclick="$.phpokform.laydate_button('dateline','datetime')" class="layui-btn layui-btn-sm" id="btn_dateline_datetime" />
								<input type="button" value="{lang清空}" onclick="$.phpokform.clear('dateline')" class="layui-btn layui-btn-sm layui-btn-danger" />
							</div>
						</div>
						<div class="layui-input-inline auto gray lh30">{lang自定义发布时间，留空使用系统时间}</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">
							{lang阅读次数}
						</label>
						<div class="layui-input-inline auto">
							<input type="text" id="hits" name="hits" class="layui-input" value="{$rs.hits}" />
						</div>
						<div class="layui-input-inline auto gray lh30">{lang正常情况请不要设置，以保证数据的准确，仅支持整数}</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">
							{lang财富基数}
						</label>
						<div class="layui-input-inline auto">
							<input type="text" id="integral" class="layui-input" name="integral" value="{$rs.integral}" />
						</div>
						<div class="layui-input-inline auto gray lh38">{lang只支持整数，用于计算用户虚拟财富增减}</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">
							{lang排序}
						</label>
						<div class="layui-input-inline auto">
							<input type="text" id="sort" name="sort" class="layui-input" value="{$rs.sort}" />
						</div>
						<div class="layui-input-inline auto gray lh38">{lang排序值只支持数字，不清楚请留空}</div>
					</div>
				</div>
				<!-- if $p_rs.is_biz -->
				<div class="layui-tab-item">
					<!-- if $p_rs.biz_service == 2 || $p_rs.biz_service == 3 -->
					<input type="hidden" name="is_virtual" id="is_virtual" value="{$rs.is_virtual}" />
					<!-- else -->
					<div class="layui-form-item">
						<label class="layui-form-label">
							{lang产品类型}
						</label>
						<div class="layui-input-inline auto">
							<input type="radio" title="{lang实物}" name="is_virtual" value="0"{if !$rs.is_virtual} checked{/if} />
							<input type="radio" title="{lang服务}" name="is_virtual" value="1"{if $rs.is_virtual} checked{/if} />
						</div>
						<div class="layui-input-inline auto gray lh38">{lang实物产品加入购物车后需要填写收件地址，服务不需要}</div>
					</div>
					<!-- /if -->
					<div class="layui-form-item">
						<label class="layui-form-label">
							{lang最小购量}
						</label>
						<div class="layui-input-inline short">
							<input type="text" name="min_qty" id="min_qty" value="{$rs.min_qty ? $rs.min_qty : 1}" class="layui-input" />
						</div>
						<div class="layui-form-mid">{lang设置产品最小购买量，小于此数量不能购买，仅限整数}</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">
							<i class="layui-icon layui-tips" lay-tips="{lang填写产品的计量单位，以方便结算}">&#xe702;</i>
							{lang计量单位}
						</label>
						<div class="layui-input-inline short">
							<input type="text" id="unit" class="layui-input" name="unit" value="{$rs.unit}" />
						</div>
						<!-- if $unitlist -->
						<div class="layui-input-inline auto gray lh38">
							<div class="layui-btn-group">
								<!-- loop from=$unitlist key=$key value=$value id=$tmpid -->
								<input type="button" value="{$value}" onclick="$('#unit').val(this.value)" class="layui-btn layui-btn-sm" />
								<!-- /loop -->
							</div>
						</div>
						<!-- /if -->
					</div>
					
					<div class="layui-form-item">
						<label class="layui-form-label">
							{lang重量}
						</label>
						<div class="layui-input-inline short">
							<input type="text" id="weight" class="layui-input" name="weight" value="{$rs.weight}" />
						</div>
						<div class="layui-form-mid">Kg {lang可用于计算基于重量的运费，单位是千克，请注意换算}</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">
							{lang体积}
						</label>
						<div class="layui-input-inline short">
							<input type="text" id="volume" name="volume" class="layui-input" value="{$rs.volume}" /> 
						</div>
						<div class="layui-form-mid">M<sup>3</sup> {lang设置产品体积，用于计算基于体积的运费，单位是立方米，请注意换算}</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">
							{lang库存}
						</label>
						<div class="layui-input-inline short">
							<input type="text" id="qty" name="qty" class="layui-input" value="{$rs.qty}" /> 
						</div>
						<div class="layui-form-mid">
							{lang填写库存数量，如果产品属性不为空，此处数值会基于属性统计}
						</div>
					</div>
					
					<div class="layui-form-item">
						<label class="layui-form-label">
							{lang销售价格}
						</label>
						<div class="layui-input-inline default-auto">
							<ul class="layout">
								<li><input type="text" name="price" id="price" value="{$rs.price}" class="layui-input" /></li>
								<li>
									<select name="currency_id" id="currency_id">
										<!-- loop from=$currency_list key=$key value=$value -->
										<option value="{$value.id}"{if $rs.currency_id == $value.id} selected{/if} code="{$value.code}" rate="{$value.val}" sleft="{$value.symbol_left}" sright="{$value.symbol_right}">{$value.title}_{lang汇率} {$value.val}</option>
										<!-- /loop -->
									</select>
								</li>
							</ul>
						</div>
						<div class="layui-input-inline auto gray lh38">{lang设置产品的价格及货币类型，此项不能为空}</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label title" style="margin-top:3px;">
							{lang批发价格}
						</label>
						<div class="layui-input-inline default-auto">
							<table class="layui-table" id="{$_rs.identifier}_tbl">
							<thead>
							<tr>
								<th>数量（≥）</th>
								<th>价格</th>
								<th><input type="button" value="添加" onclick="$.admin_list_edit.wholesale_add()" class="layui-btn layui-btn-xs" /></th>
							</tr>
							</thead>
							<tbody id="tradeprice">
								<!-- loop from=$wholesale key=$key value=$value id=$tmpid -->
								<tr>
									<td><input type="text" name="_wholesale_qty[]" value="{$value.qty}" class="layui-input" /></td>
									<td><input type="text" name="_wholesale_price[]" value="{$value.price}" class="layui-input" /></td>
									<td><input type="button" value="删除" onclick="$.admin_list_edit.wholesale_delete(this)" class="layui-btn layui-btn-xs layui-btn-danger" /></td>
								</tr>
								<!-- /loop -->
							</tbody>
							</table>
						</div>
					</div>
					<!-- if $p_rs.biz_attr -->
					<div class="layui-form-item">
						<label class="layui-form-label title" style="margin-top:3px;">
							{lang产品属性}
						</label>
						<div class="layui-input-block">
							<input type="hidden" name="_biz_attr" id="_biz_attr" value="{$_biz_attr}" />
							<input type="hidden" name="_biz_attr_value" id="_biz_attr_value" value="{$_biz_attr_value}" />
							<div>
								<table cellpadding="0" cellspacing="0">
								<tr>
									<td>
										<select id="biz_attr_id" lay-ignore onchange="$.admin_list_edit.attr_add(this.value)">
											<option value="">{lang请选择一个属性操作内容…}</option>
											<!-- loop from=$biz_attrlist key=$key value=$value id=$tmpid -->
											<option value="{$value.id}">{$value.title}</option>
											<!-- /loop -->
										</select>
									</td>
									<td>&nbsp;</td>
									<td><input type="button" value="{lang添加新属性}" onclick="$.admin_list_edit.attr_create()" class="layui-btn layui-btn-sm" /></td>
								</tr>
								</table>
							</div>
							<div id="biz_attr_options"></div>
						</div>
					</div>
					<!-- /if -->
				</div>
				<!-- /if -->
				<!-- if $p_rs.is_seo -->
				<div class="layui-tab-item">
					<div class="layui-form-item">
						<label class="layui-form-label">
							{langSEO标题}
						</label>
						<div class="layui-input-block">
							<input type="text" id="seo_title" name="seo_title" class="layui-input" value="{$rs.seo_title}" />
						</div>
						<div class="layui-input-block mtop">
							{lang设置此标题后，网站Title将会替代默认定义的，不能超过50个汉字}
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">
							{langSEO关键字}
						</label>
						<div class="layui-input-block">
							<input type="text" id="seo_keywords" name="seo_keywords" class="layui-input" value="{$rs.seo_keywords}" />
						</div>
						<div class="layui-input-block mtop">{lang多个关键字用英文逗号隔开，为空将使用默认}</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">
							{langSEO描述}
						</label>
						<div class="layui-input-block">
							<textarea name="seo_desc" id="seo_desc" class="layui-textarea">{$rs.seo_desc}</textarea>
						</div>
						<div class="layui-input-block mtop">{lang简单描述该主题信息，用于搜索引挈，不支持HTML，不能超过80个汉字}</div>
					</div>
				</div>
				<!-- /if -->
				<!-- if $id && $loglist -->
				<div class="layui-tab-item">
					<table class="layui-table">
					<thead>
						<tr>
							<th>ID</th>
							<th>时间</th>
							<th>类型</th>
							<th>字段</th>
							<th>记录</th>
							<th>操作</th>
						</tr>
					</thead>
					<!-- loop from=$loglist key=$key value=$value id=$tmpid -->
					<tr>
						<td scope="row">{$value.id}</td>
						<td>{func date "Y-m-d H:i:s" $value.dateline}</td>
						<td>{$value.vtype}</td>
						<td>{$value.code}</td>
						<td>{func phpok_cut $value.content1 200 …}</td>
						<td>
							<input type="button" value="恢复使用" onclick="$.admin_list.reset_it({$value.id})" class="layui-btn layui-btn-sm" />
						</td>
					</tr>
					<!-- /loop -->
					</table>
				</div>
				<!-- /if -->
			</div>
		</div>
	</div>
</div>

<!-- if !$isopen -->
<div class="submit-info">
	<div class="layui-container">
		<input type="submit" value="{lang保存并关闭}" class="layui-btn layui-btn-lg layui-btn-danger" />
		<input type="button" value="{lang保存}" class="layui-btn layui-btn-lg layui-btn-normal" onclick="$.admin_list_edit.save_not_close()" />
		<!-- if !$id -->
		<input type="button" value="{lang保存并继续添加}" onclick="$.admin_list_edit.save2add()" class="layui-btn layui-btn-lg layui-btn-normal" />
		<!-- /if -->
		
		<input type="button" value="{lang取消关闭}" title="此操作不会保存数据" class="layui-btn layui-btn-lg layui-btn-primary" onclick="$.admin.close()" />
		<!-- if $id && $p_rs.is_front -->
		<input type="button" value="{lang预览}" title="需要先点击保存" class="layui-btn layui-btn-lg layui-btn-warm" onclick="$.phpok.open('{$sys.www_file}?id={$id}')" />
		<!-- /if -->
	</div>
</div>
<div class="submit-info-clear"></div>
<!-- /if -->
</form>
<!-- include tpl=foot_lay is_open=$isopen -->